package com.etc.pojo;

import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class FirstType {

    private int firstTypeId;
    private String firstTypeName;
    List<SecondType> list;

    public int getFirstTypeId() {
        return firstTypeId;
    }

    public void setFirstTypeId(int firstTypeId) {
        this.firstTypeId = firstTypeId;
    }

    public String getFirstTypeName() {
        return firstTypeName;
    }

    public void setFirstTypeName(String firstTypeName) {
        this.firstTypeName = firstTypeName;
    }

    public List<SecondType> getList() {
        return list;
    }

    public void setList(List<SecondType> list) {
        this.list = list;
    }

    public FirstType() {
    }

    public FirstType(int firstTypeId, String firstTypeName, List<SecondType> list) {
        this.firstTypeId = firstTypeId;
        this.firstTypeName = firstTypeName;
        this.list = list;
    }

    @Override
    public String toString() {
        return "FirstType{" +
                "firstTypeId=" + firstTypeId +
                ", firstTypeName='" + firstTypeName + '\'' +
                ", list=" + list +
                '}';
    }
}
